gdk: Remove depth argument from GdkWindowImpl->get_geometry()
authorBenjamin Otte <otte@redhat.com>
Sun, 5 Dec 2010 13:40:35 +0000 (14:40 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 6 Dec 2010 00:02:52 +0000 (01:02 +0100)
gdk/gdkoffscreenwindow.c
gdk/gdkwindow.c
gdk/gdkwindowimpl.h
gdk/quartz/gdkwindow-quartz.c
gdk/win32/gdkwindow-win32.c
gdk/x11/gdkwindow-x11.c

index 9ade91bee1d3891e144c399fd84c78ae6ca20a78..1731f45dad6dd2d2bec8dd4be8566dabb11d6646 100644 (file)
@@ -549,8 +549,7 @@ gdk_offscreen_window_get_geometry (GdkWindow *window,
                                   gint      *x,
                                   gint      *y,
                                   gint      *width,
-                                  gint      *height,
-                                  gint      *depth)
+                                  gint      *height)
 {
   if (!GDK_WINDOW_DESTROYED (window))
     {
@@ -562,8 +561,6 @@ gdk_offscreen_window_get_geometry (GdkWindow *window,
        *width = window->width;
       if (height)
        *height = window->height;
-      if (depth)
-       *depth = window->depth;
     }
 }
 
index 4ab9a26e5ddb947cc41bbadf1a0808606f18b7cc..7ac839640fe5ea3b241dbd57e02c707bd1388330 100644 (file)
@@ -6859,8 +6859,7 @@ gdk_window_get_geometry (GdkWindow *window,
        {
          impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
          impl_class->get_geometry (window, x, y,
-                                   width, height,
-                                   NULL);
+                                   width, height);
          /* This reports the position wrt to the native parent, we need to convert
             it to be relative to the client side parent */
          parent = window->parent;
index 0332a31b71e69e34548acba6292034f793f84a01..af2d922c42d465dc67b337bad40e0c3d5378217e 100644 (file)
@@ -91,8 +91,7 @@ struct _GdkWindowImplClass
                                          gint            *x,
                                          gint            *y,
                                          gint            *width,
-                                         gint            *height,
-                                         gint            *depth);
+                                         gint            *height);
   gint         (* get_root_coords)      (GdkWindow       *window,
                                         gint             x,
                                         gint             y,
index 40b9dbb8545394346e30e3409ad44be24b024cc2..a27163ca4b3d8e3eb97081b062e29a9600b10565 100644 (file)
@@ -1645,8 +1645,7 @@ gdk_window_quartz_get_geometry (GdkWindow *window,
                                 gint      *x,
                                 gint      *y,
                                 gint      *width,
-                                gint      *height,
-                                gint      *depth)
+                                gint      *height)
 {
   GdkWindowImplQuartz *impl;
   GdkWindowObject *private;
@@ -1713,9 +1712,6 @@ gdk_window_quartz_get_geometry (GdkWindow *window,
       if (height)
         *height = ns_rect.size.height;
     }
-    
-  if (depth)
-      *depth = gdk_visual_get_depth (gdk_window_get_visual (window));
 }
 
 static gint
index bcbdca33a14d3028185f0b8507964fb3bfe56a42..549f7a38acc32c3454435a961e3a1dc8ae28f918 100644 (file)
@@ -1800,8 +1800,7 @@ gdk_win32_window_get_geometry (GdkWindow *window,
                               gint      *x,
                               gint      *y,
                               gint      *width,
-                              gint      *height,
-                              gint      *depth)
+                              gint      *height)
 {
   if (!window)
     window = _gdk_root;
@@ -1848,8 +1847,6 @@ gdk_win32_window_get_geometry (GdkWindow *window,
        *width = rect.right - rect.left;
       if (height)
        *height = rect.bottom - rect.top;
-      if (depth)
-       *depth = gdk_window_get_visual (window)->depth;
 
       GDK_NOTE (MISC, g_print ("gdk_win32_window_get_geometry: %p: %ldx%ldx%d@%+ld%+ld\n",
                               GDK_WINDOW_HWND (window),
index 51ded44f60dfced51cce86e634684e56991bc97b..d3b19928557604ff1acb0544c3ed542c1bf8e510 100644 (file)
@@ -2739,8 +2739,7 @@ gdk_window_x11_get_geometry (GdkWindow *window,
                              gint      *x,
                              gint      *y,
                              gint      *width,
-                             gint      *height,
-                             gint      *depth)
+                             gint      *height)
 {
   Window root;
   gint tx;
@@ -2764,8 +2763,6 @@ gdk_window_x11_get_geometry (GdkWindow *window,
        *width = twidth;
       if (height)
        *height = theight;
-      if (depth)
-       *depth = tdepth;
     }
 }